package com.mindainfo.configCenter.config.dao;

import com.mindainfo.configCenter.base.dao.IBaseDao;
import com.mindainfo.configCenter.config.bean.RemoteConfig;

import java.util.List;

/**
 * Created by MD-01 on 2016/11/14.
 */
public interface IRemoteConfigDao extends IBaseDao<RemoteConfig> {

    /**
     * 根据ip查询
     */
    public RemoteConfig getByServerHost(String serverHost);

    /**
     * 分页查询配置列表
     */
    List<RemoteConfig> queryList(String keyword, int start, int num);

    /**
     * 查询配置列表总数
     */
    int queryListCount(String keyword);
}
